package com.zhubayi.springcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhubayi
 */
@RestController
public class OrderZkController {
    public static final String URL="http://cloud-provider-payment";
    @Autowired
    private RestTemplate restTemplate;
    @GetMapping("consumer/payment/zk")
    public String paymentInfo(){
       return restTemplate.getForObject(URL+"/payment/zk",String.class);
    }
}
